<!DOCTYPE html>
<html>
<head>
    <title>2048</title>
    <link rel="stylesheet" type="text/css" href="2048.css">

    <script type = "text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script type = "text/javascript" src="main2048.js"></script>
    <script type = "text/javascript" src="support2048.js"></script>
    <script type = "text/javascript" src="showanimation2048.js"></script>
</head>
<body>
    <header>
        <h1>2048</h1>
        <p id="bug">
                遗留的两个bug还未解决：<br>
                1.方向键上下左右操作时，有时不会在空的格子上生成新数字<br>
                2.gameover部分混乱，会经常随意调用gameover函数，为了不影响正常游戏将弹窗换成了console.log<br>
                3.移动的时候会一步到位，可以改但是改了之后会影响原本正常的移动，还没找到更好的方法。
        </p>
        <p style="color : red">made by yuan</p>
        <a href="javascript:newgame();" id="newgamebutton">New Game</a>
        <p>score: <span id="score">0</span></p>
    </header>
    <div id="grid-container">
        <div class="grid-cell" id="grid-cell-0-0"></div>
        <div class="grid-cell" id="grid-cell-0-1"></div>
        <div class="grid-cell" id="grid-cell-0-2"></div>
        <div class="grid-cell" id="grid-cell-0-3"></div>

        <div class="grid-cell" id="grid-cell-1-0"></div>
        <div class="grid-cell" id="grid-cell-1-1"></div>
        <div class="grid-cell" id="grid-cell-1-2"></div>
        <div class="grid-cell" id="grid-cell-1-3"></div>

        <div class="grid-cell" id="grid-cell-2-0"></div>
        <div class="grid-cell" id="grid-cell-2-1"></div>
        <div class="grid-cell" id="grid-cell-2-2"></div>
        <div class="grid-cell" id="grid-cell-2-3"></div>

        <div class="grid-cell" id="grid-cell-3-0"></div>
        <div class="grid-cell" id="grid-cell-3-1"></div>
        <div class="grid-cell" id="grid-cell-3-2"></div>
        <div class="grid-cell" id="grid-cell-3-3"></div>
    </div>
</body>
</html>